Week 11

 

 

 

Output Devices

 

 

Assignment

 

Add an output device to a microcontroller board you´ve designed and program it to do something.

 

 

I decided to design a led array board since that is perfect for my final project. I based my design on Neil´s board. I chose led array so I could also design pattern if I would have problems with having different colors.

 

 

 

 

Eagle file

 

 

It went pretty well until NOTHING happened. It took some time to figure out what was my mistake - see image two from the top. There is an error in my connection. Everything worked fine once I fixed that problem.

 

 

 

 

 

When we discovered my misstake I thought I would have to redo my board all over again but I was able to put a 0 resistor and bridge the gap the same way I made bridges in order to go over the lines to connect all the lights. At first I programmed it with Neils code just to see if it would work and YES it worked fine. Now I wanted to program it differently so I took an example in Arduino called Array and it worked.

 

 

 

 

Then I was looking at websites from the Academy Class 2014 and I found Juanes Vallejo´s website. He had done the same board in his output week and he and his instructor wrote a new code in Arduino. I copied that code and it worked fine. Then I changed the delay and I was able to make it slower and faster. I was also able to change which lights were being turned on. I still would lke to understand the code better so I could program it the way I want the lights to be turned on. I also would like to learn how I can make all the lights to be turned on and to stay on.



 

Arduino file